<?php
    $attributes = array(
        'style'         => 'color: red',
        'font-weight'   =>  'bold'
    );
    //Lí do nợ
    echo form_label($this->lang->line('reason'), 'reason',$attributes);
    echo form_textarea(array('name' => 'reason', 'id' => 'reason', 'value' => '','rows' => '5'));
    echo form_error('reason');
    // Hạn thanh toán
    echo form_label($this->lang->line('maturity'), 'maturity',$attributes);
    echo form_input(array('name' => 'maturity', 'id' => 'maturity', 'value' => ''));
    echo form_error('maturity');
    // điều khoản
    echo form_checkbox('debts', 'debts', TRUE).$this->lang->line('debth_agree');
    echo '<br/><br/>';
?>

<script>
$(function() {
  var $datepicker = $( "#maturity" );
  $datepicker.datepicker({ dateFormat: 'dd-mm-yy' }).val();
});
</script>